<template>

      <div id="app">
        <span>教育单位问题反应通道</span>
        <el-form :model="clazz" label-width="100px">

          <el-form-item label="问题类型" prop="name">
            <el-input v-model="clazz.leixing"></el-input>
          </el-form-item>

<!--          <el-form-item label="辅导员">-->
<!--            <el-select v-model="clazz.headTeacher">-->
<!--              <el-option v-for="(item,index) in teacherList" :key="index" :label="item.name" :value="item.id"></el-option>-->
<!--            </el-select>-->
<!--          </el-form-item>-->
          <el-form-item label="所属单位" prop="name">
            <el-input v-model="clazz.danwei"></el-input>
          </el-form-item>

          <el-form-item label="描述">
            <el-input v-model="clazz.neirong"  type="textarea" rows="5"></el-input>
          </el-form-item>

          <el-form-item>
            <el-button type="primary" @click.prevent="test">提交</el-button>
          </el-form-item>
        </el-form>
      </div>
</template>

<script>
export default {
  data(){
    return {
      clazz:{},
      teacherList:[]
    }
  },
  created(){
    // this.axios.get("/teacher/selectAll").then(resp=>{
    //   this.teacherList=resp.data;
    // })
  },
  methods:{
    test(){
      this.$confirm("是否确认提交","保存提示").then(()=>{
        this.axios.post("/danwei/add",this.clazz).then((resp)=>{
          this.$message.success("保存成功！");
          this.$router.push("/student/AddRenmin")
        });
      });
    }
  }
}
</script>


<style scoped>

</style>
